function slide_toggle(div_id, image_id)
{	
	var err_div = document.getElementById(div_id);
	var image = document.getElementById(image_id);
	err_div.style.width = err_div.parentElement.style.width;
	if(err_div.offsetHeight == 0)
	{
		image.src = '_layouts\\images\\ewr079.gif';
		err_div.style.display = "block";
		slide_down(div_id, err_div.offsetHeight, 0);
	}
	else
	{
		image.src = '_layouts\\images\\ewr078.gif';
		slide_up(div_id, err_div.offsetHeight, err_div.offsetHeight);
	}												
}

function slide_down(div_id, err_div_maxsize, err_div_curheight)
{
	err_div = document.getElementById(div_id);
	
	if(err_div_curheight < err_div_maxsize)
	{
		err_div_curheight += 1;
		err_div.style.clip= "rect(auto auto " + err_div_curheight + "px auto)";
		err_div.parentElement.style.height = err_div_curheight;
		window.setTimeout("slide_down('" + div_id + "', " + err_div_maxsize + ", " + err_div_curheight + ");", 10);				
	}			
}

function slide_up(div_id, err_div_maxsize, err_div_curheight)
{
	err_div = document.getElementById(div_id);
	
	if(err_div_curheight > 0)
	{
		err_div_curheight -= 1;
		err_div.parentElement.style.height = err_div_curheight;
		err_div.style.clip= "rect(auto auto " + err_div_curheight + "px auto)";
		window.setTimeout("slide_up('" + div_id + "', " + err_div_maxsize + ", " + err_div_curheight + ");", 10);				
	}		
	else
	{
		window.setTimeout("err_div.style.display = 'none'", 5);
	}				
}